function copyProp(a, b) {
	if (a && b) {
		for (var key in b) {
			a[key] = b[key];
		}
	}
	return a;
};

function toString(obj) {
	if (typeof obj === 'string')
		return obj;
	if (typeof obj === 'object')
		return JSON.stringify(obj);
}

var path = require('path');

var staticFolder = null;

// you cant get static folder everywhere now
function getStaticFolder() {
	if (!staticFolder) {
		staticFolder = path.resolve(__dirname, '../', 'public');
	}
	return staticFolder;
}
module.exports = exports = {
	copyProp: copyProp,
	getStaticFolder: getStaticFolder
}